/**  
* @Title: BookBorrow.java  
* @Package com.ssm.demo.model  
* @Description: TODO(用一句话描述该文件做什么)  
* @author jing Lei 
* @date 2018年12月27日  
* @version V1.0  
*/

package com.ssm.demo.model;

import java.util.Date;

/**
 * @ClassName: BookBorrow
 * @Description: BookBorrow 实体类
 * @author jing Lei
 * @date 2018年12月27日
 * 
 */

public class BookBorrow extends BaseModel {
	/**
	 * @Fields field:field:{todo}(用一句话描述这个变量表示什么)
	 */

	private static final long serialVersionUID = 2555693810195120977L;
	/**
	 * 书籍id
	 */
	private int bookId;
	/**
	 * 学生id
	 */
	private int studentId;
	/**
	 * 借书日期
	 */
	private Date borrowDate;
	/**
	 * 借书日期字符串格式
	 */
	private String borrowDateStr;
	/**
	 * 还书日期
	 */
	private Date returnDate;
	/**
	 * 还书日期字符串格式
	 */
	private String returnDateStr;
	/**
	 * 是否续借
	 */
	private int renew;
	/**
	 * 逾期每天罚款金额
	 */
	private int punishment;
	/**
	 * 备注
	 */
	private String bookName;
	/**
	 * 创建一个新的实例 BookBorrow.
	 * 
	 * @param bookId
	 * @param studentId
	 * @param borrowDate
	 * @param returnDate
	 * @param renew
	 * @param punishment
	 */
	public BookBorrow() {
	}

	public BookBorrow(int bookId, int studentId, Date borrowDate, Date returnDate, int renew, int punishment
			) {
		super();
		this.bookId = bookId;
		this.studentId = studentId;
		this.borrowDate = borrowDate;
		this.returnDate = returnDate;
		this.renew = renew;
		this.punishment = punishment;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public int getStudentId() {
		return studentId;
	}

	public void setStudentId(int studentId) {
		this.studentId = studentId;
	}

	public Date getBorrowDate() {
		return borrowDate;
	}

	public void setBorrowDate(Date borrowDate) {
		this.borrowDate = borrowDate;
	}

	public Date getReturnDate() {
		return returnDate;
	}

	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}

	public int getRenew() {
		return renew;
	}

	public void setRenew(int renew) {
		this.renew = renew;
	}

	public int getPunishment() {
		return punishment;
	}

	public void setPunishment(int punishment) {
		this.punishment = punishment;
	}
	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	/**
	 * @return the borrowDateStr
	 */
	public String getBorrowDateStr() {
		return borrowDateStr;
	}

	/**
	 * @param borrowDateStr the borrowDateStr to set
	 */
	public void setBorrowDateStr(String borrowDateStr) {
		this.borrowDateStr = borrowDateStr;
	}

	/**
	 * @return the returnDateStr
	 */
	public String getReturnDateStr() {
		return returnDateStr;
	}

	/**
	 * @param returnDateStr the returnDateStr to set
	 */
	public void setReturnDateStr(String returnDateStr) {
		this.returnDateStr = returnDateStr;
	}

	/**
	 * @return the bookName
	 */
	public String getBookName() {
		return bookName;
	}

	/**
	 * @param bookName the bookName to set
	 */
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	
}
